﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class StyleImageBLL : BaseBLL<StyleImage>
    {
        StyleImageDAO dao = new StyleImageDAO();
        public StyleImage entity = new StyleImage();
        public override StyleImage GetModel()
        {
            return entity;
        }

        public int GetMaxId()
        {
            return dao.GetMaxId();
        }
        public IList<StyleImage> GetListByPager(int styleId, int page, int pagesize)
        {
            return dao.GetListByPager(styleId, page, pagesize);
        }
        public int GetListByPager(int styleId)
        {
            return dao.GetListByPager(styleId);
        }

        public StyleImage GetLastImage(int styleId)
        {
            return dao.GetLastImage(styleId);
        }

        public IList<StyleImage> GetAllImageByStyleId(int styleId)
        {
            return dao.GetAllImageByStyleId(styleId);
        }
    }
}
